package com.ay.weixin.fdc.boss.spage.db;

import java.sql.SQLException;
import java.util.List;

import lizar.db.ibatis.Dao;

import com.ay.weixin.fdc.boss.spage.domain.SPage;

public class IbatisSpageDao extends Dao {
	
	public List<SPage> getAll(long wxproject_id) throws SQLException{
		return this.sqlMapper.queryForList("spage.getAll",wxproject_id);
	}
	
	public SPage get(long id) throws SQLException{
		return (SPage)this.sqlMapper.queryForObject("spage.get",id);
	}
	
	public void update(SPage spage) throws SQLException{
		this.sqlMapper.update("spage.update",spage);
	}
	
}
